package com.heisenhub.common.oauth.config;

import com.heisenhub.common.oauth.hander.ApiResourceOpenHander;
import com.heisenhub.common.oauth.interceptor.XmServerProtectInterceptor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
public class XmWebMvcConfigurer implements WebMvcConfigurer {
    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(new XmServerProtectInterceptor());
    }
}
